import sun.swing.plaf.synth.DefaultSynthStyle;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;

/**
 * @title: q
 * @projectName jeeplus
 * @description: TODO
 * @author Administrator
 * @date 2019/7/217:23
 */

public class q {

 public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
 Class<q> clz=q.class;
  Method method =clz.getMethod("test",new Class[]{String.class});
  Object result=method .invoke(new q(),new Object[]{"10"});
  System.out.println(result);
 }
 public static void test(String st){
  System.out.println(st);
 }
}
